package sd.zhr.moodcapsule.mapper;

import org.apache.ibatis.annotations.Mapper;
import sd.zhr.moodcapsule.pojo.User;
import sd.zhr.moodcapsule.pojo.UserDto;

import java.util.List;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    UserDto findByUsername(String username);//根据账号查询用户信息

    List<User> getAllUser();//获取所有用户

    int updateValid(User user);//修改valid
}